package com.donquijote.spring12.bean2;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * @author 421527548@qq.com
 * @version V1.0
 * @title
 * @description
 * @date 2022-11-23 18:31
 */
@Component
public class A {
    public A() {
        System.out.println("A对象全部生效");
    }
}
@Controller
class B{
    public B() {
        System.out.println("B对象全部生效");
    }
}
@Service
class C{
    public C() {
        System.out.println("C对象全部生效");
    }
}
@Repository
class D{
    public D() {
        System.out.println("D对象全部生效");
    }
}
@Service
class E{
    public E() {
        System.out.println("E对象全部生效");
    }
}